﻿/// <reference path="Template.js" />
/// <reference path="Data.js" />

TA.Turbo.Data.DataTemplate = function DataTemplate(control, template, id, elements)
{
	if (Function.IsInherit(arguments)) return;

	this.TemplateInstance(control, template, id, elements);
	this.Container();

	for (var i = 0; i < this.get_Elements().length; ++i)
	{
		var elem = this.get_Elements()[i];
		if (elem.tagName != null)
			this.AddElement(elem);
	}
}
TA.Turbo.Data.DataTemplate.Inherit(TA.Turbo.Data.Container);
TA.Turbo.Data.DataTemplate.Inherit(TA.Turbo.Common.TemplateInstance);

var ____a;
if (____a)
{
	TA.Turbo.Data.DataTemplate.prototype = new TA.Turbo.Common.TemplateInstance();
//	TA.Turbo.Data.DataTemplate.prototype = new TA.Turbo.Data.Container();
	TA.Turbo.Data.DataTemplate.prototype.TemplateInstance = new TA.Turbo.Common.TemplateInstance();
	TA.Turbo.Data.DataTemplate.prototype.Container = new TA.Turbo.Data.Container();
}
var $dt = TA.Turbo.Data.DataTemplate;
